import request from '@/utils/request'

// 查询班级耗材明细列表
export function listClassConsumable(query) {
  return request({
    url: '/training/ClassConsumable/list',
    method: 'get',
    params: query
  })
}

// 查询班级耗材明细详细
export function getClassConsumable(classConsumableId) {
  return request({
    url: '/training/ClassConsumable/' + classConsumableId,
    method: 'get'
  })
}

// 新增班级耗材明细
export function addClassConsumable(data) {
  return request({
    url: '/training/ClassConsumable',
    method: 'post',
    data: data
  })
}

// 修改班级耗材明细
export function updateClassConsumable(data) {
  return request({
    url: '/training/ClassConsumable',
    method: 'put',
    data: data
  })
}

// 删除班级耗材明细
export function delClassConsumable(classConsumableId) {
  return request({
    url: '/training/ClassConsumable/' + classConsumableId,
    method: 'delete'
  })
}
